package com.wangjiang.mario.admin.system.domain.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wangjiang.mario.admin.common.base.BaseServiceImpl;
import com.wangjiang.mario.admin.system.domain.entity.SystemDictDataEntity;
import com.wangjiang.mario.admin.system.domain.mapper.SystemDictDataMapper;
import com.wangjiang.mario.admin.system.domain.service.SystemDictDataService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SystemDictDataServiceImpl extends BaseServiceImpl<SystemDictDataMapper, SystemDictDataEntity>
        implements SystemDictDataService {

    private static final Logger logger = LoggerFactory.getLogger(SystemDictDataServiceImpl.class);

    @Override
    public List<SystemDictDataEntity> findListByDataType(String dataType) {
        QueryWrapper<SystemDictDataEntity> queryWrapper = getDefaultWrapper();
        queryWrapper.eq("dict_type", dataType);

        return list(queryWrapper);
    }

    // @Autowired
    // private JwtService jwtService;

}
